home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1623 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.0 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ performance
  5. Date: 11 Jan 1996 21:25:55 GMT
  6. Organization: Pipeline USA
  7. Message-ID: <4d3v93$rf9@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Jan 11, 1996 18:25:17 in article <C++ performance>,
  15. 'christ@lexis-nexis.com (Chris Tilton)' wrote: 
  16.  
  17.  
  18. >What (if any) rules of thumb/tricks of the trade exist 
  19. >for enhancing the performance of a program?  I discovered 
  20. >how to make a small function 'inline' and was curious 
  21. >of what else exists to enhance execution speed.   
  22. The best rule of thumb is to analyze your algorithms and improve 
  23. them to the best of your ability.  Use a profiler to help determine 
  24. where your program spends most of its time and concentrate on 
  25. speeding up those portions.  Inlining and other 'tricks' applied 
  26. everywhere without discretion typically produce only minor gains. 
  27.  
  28. -- 
  29.  
  30. Pete
  31.